import 'package:dio/dio.dart';

Dio configureDio() {
  final dio=Dio();
  // 更新默认配置。
  dio.options.baseUrl = 'http://212.64.23.91:8080';
  dio.options.connectTimeout = Duration(seconds: 5);
  dio.options.receiveTimeout = Duration(seconds: 3);
  return dio;
}
final Dio dio=configureDio();